<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Index</title>
</head>
<body>
	
	<!-- 
		request: 取得请求参数
		response: 响应浏览器输出内容（ 在 jsp 页面基本不用）
		out: 输出到浏览器， out.println("在浏览器中输出的内容")
		session: 在当前会话中有效，新会话中无效
		application: 在当前  Web 应用中有效 
	-->
	
	<!-- java 源码位置  
	G:\java\STSWorkspace\.metadata\.plugins\org.eclipse.wst.server.core\
						tmp0\work\Catalina\localhost\WebTest\org\apache\jsp -->

	<%
		request.setAttribute("request", "request information");
		pageContext.setAttribute("pageContext", "page context information");
		session.setAttribute("session", "session information");
		application.setAttribute("application", "application information");
	%>
	
	<%=request.getAttribute("request") %><br/><br/>
	<%=pageContext.getAttribute("pageContext") %><br/><br/>
	<%=session.getAttribute("session") %><br/><br/>
	<%=application.getAttribute("application") %><br/><br/>
	
	<a href="./login.jsp">login.jsp</a><br/><br/>
	<a href="./login.html">loginServlet</a>
	
</body>
</html>